import Vue from "vue";
import Vuex from 'vuex'
import persistence from "vuex-uniapp-persistence";

import user from "./modules/user";
import getters from "./getters";

Vue.use(Vuex)

const store = new Vuex.Store({
  // state: {},
  // mutations: {},
  // actions: {},
  plugins: [persistence()],
  getters,
  modules: {
    user
  }
})

export default store